archother={
'32bit': 'i386',
'64bit': 'x86_64'}[platform.architecture()[0]],
- homepage='http://siridb.net',
+ homepage='https://siridb.net',
distribution=_get_distribution(),
curdate=datetime.datetime.utcnow().strftime('%d %b %Y'),
year=datetime.datetime.utcnow().year,
uuid-dev,
libcleri-dev
Standards-Version: 4.1.3
-Homepage: http://siridb.net
+Homepage: https://siridb.net
Vcs-Browser: https://github.com/SiriDB/siridb-server
Vcs-Git: https://github.com/SiriDB/siridb-server.git
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: siridb-server
-Source: http://siridb.net
+Source: https://siridb.net
Files: *
Copyright: 2016 Transceptor Technology
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
class TestBuffer(TestBase):
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'INFO'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestBuffer())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
class TestCluster(TestBase):
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'INFO'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestCluster())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
+
TIME_PRECISION = 'ms'
if __name__ == '__main__':
random.seed(1)
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestCompression())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
DATA = {
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestGroup())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
+
TIME_PRECISION = 'ns'
if __name__ == '__main__':
random.seed(1)
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestInsert())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
+
TIME_PRECISION = 's'
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestList())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
DATA = {
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestLog())
from testing import TestBase
from testing import UserAuthError
from testing import SiriDBAsyncUnixConnection
+from testing import parse_args
+
PIPE_NAME = '/tmp/siridb_pipe_test.sock'
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestPipeSupport())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
class TestPool(TestBase):
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestPool())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
PI = 'ԉ'
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAl'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestSeries())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
class TestServer(TestBase):
await self.client0.connect()
await self.db.add_pool(self.server1)
- await self.assertIsRunning(self.db, self.client0, timeout=12)
+ await self.assertIsRunning(self.db, self.client0, timeout=20)
await asyncio.sleep(5)
await self.client1.connect()
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestServer())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
+
# Compression OFF:
# du --bytes testdir/dbpath0/dbtest/shards/
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = True
- Server.MEM_CHECK = True
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestSyslog())
from testing import SiriDB
from testing import TestBase
from testing import UserAuthError
+from testing import parse_args
class TestUser(TestBase):
if __name__ == '__main__':
- SiriDB.LOG_LEVEL = 'CRITICAL'
- Server.HOLD_TERM = False
- Server.MEM_CHECK = False
- Server.BUILDTYPE = 'Debug'
+ parse_args()
run_test(TestUser())
print(
f'{self.title:.<76}'
f'{Color.error("FAILED")} ({self.duration:.2f} seconds)')
-